Video decoder parallelization for tiles

ABSTRACT

A method for decoding video includes receiving a frame of the video that includes at least one slice and at least one tile. Each of the at least one slice and the at least one tile are not all aligned with one another. Each of the at least one slice is characterized that it is decoded independently of the other the at least one slice. Each of the at least one tile is characterized that it is a rectangular region of the frame and having coding units for the decoding arranged in a raster scan order. The at least one tile of the frame are collectively arranged in a raster scan order of the frame.

CROSS-REFERENCE TO RELATED APPLICATIONS

None

BACKGROUND OF THE INVENTION

The present invention relates to video encoding and decoding.

Digital video is typically represented as a series of images or frames,each of which contains an array of pixels. Each pixel includesinformation, such as intensity and/or color information. In many cases,each pixel is represented as a set of three colors, each of which isdefined by eight bit color values.

Video-coding techniques, for example H.264/MPEG-4 AVC (H.264/AVC),typically provide higher coding efficiency at the expense of increasingcomplexity. Increasing image quality requirements and increasing imageresolution requirements for video coding techniques also increase thecoding complexity. Video decoders that are suitable for paralleldecoding may improve the speed of the decoding process and reduce memoryrequirements; video encoders that are suitable for parallel encoding mayimprove the speed of the encoding process and reduce memoryrequirements.

H.264/MPEG-4 AVC [Joint Video Team of ITU-T VCEG and ISO/IEC MPEG,“H.264: Advanced video coding for generic audiovisual services,” ITU-TRec. H.264 and ISO/IEC 14496-10 (MPEG4—Part 10), November 2007], andsimilarly the JCT-VC, [“Draft Test Model Under Consideration”,JCTVC-A205, JCT-VC Meeting, Dresden, April 2010 (JCT-VC)], both of whichare incorporated by reference herein in their entirety, are video codec(encoder/decoder) specifications that use macroblock prediction followedby residual coding to reduce temporal and spatial redundancy in a videosequence for compression efficiency.

The foregoing and other objectives, features, and advantages of theinvention will be more readily understood upon consideration of thefollowing detailed description of the invention, taken in conjunctionwith the accompanying drawings.

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS

FIG. 1 illustrates a H.264/AVC video encoder.

FIG. 2 illustrates a H.264/AVC video decoder.

FIG. 3 illustrates an exemplary slice structure.

FIG. 4 illustrates another exemplary slice structure.

FIG. 5 illustrates reconstruction of an entropy slice.

FIG. 6 illustrates parallel reconstruction of an entropy slice.

FIG. 7 illustrates a frame with a slice and 9 tiles.

FIG. 8 illustrates a frame with three slices and 3 tiles.

FIGS. 9A and 9B illustrate entropy selection for a tile.

FIGS. 10A and 10B illustrates another entropy selection for a tile.

FIG. 11 illustrates yet another entropy selection for a tile.

FIGS. 12A and 12B illustrates exemplary syntax.

FIG. 13 illustrates an explicit signal for the start of a tile.

FIG. 14 illustrates an implicit signal for the start of a tile.

FIG. 15 illustrates a set of light weight tile headers.

FIG. 16 illustrates sets of slice parameter index sets.

FIG. 17 illustrates end of tile flags.

DETAILED DESCRIPTION OF PREFERRED EMBODIMENT

While any video coder/decoder (codec) that uses entropyencoding/decoding may be accommodated by embodiments described herein,exemplary embodiments are described in relation to an H.264/AVC encoderand an H.264/AVC decoder merely for purposes of illustration. Many videocoding techniques are based on a block-based hybrid video-codingapproach, wherein the source-coding technique is a hybrid ofinter-picture, also considered inter-frame, prediction, intra-picture,also considered intra-frame, prediction and transform coding of aprediction residual. Inter-frame prediction may exploit temporalredundancies, and intra-frame and transform coding of the predictionresidual may exploit spatial redundancies.

FIG. 1 illustrates an exemplary H.264/AVC video encoder 2. An inputpicture 4, also considered a frame, may be presented for encoding. Apredicted signal 6 and a residual signal 8 may be produced, wherein thepredicted signal 6 may be based on either an inter-frame prediction 10or an intra-frame prediction 12. The inter-frame prediction 10 may bedetermined by motion compensating 14 one or more stored, referencepictures 16, also considered reference frames, using motion information19 determined by a motion estimation 18 process between the input frame4 and the reference frames 16. The intra-frame prediction 12 may bedetermined 20 using a decoded signal 22. The residual signal 8 may bedetermined by subtracting the input frame 4 from the predicted signal 6.The residual signal 8 is transformed, scaled and quantized 24, therebyproducing quantized, transform coefficients 26. The decoded signal 22may be generated by adding the predicted signal 6 to a signal 28generated by inverse transforming, scaling and inverse quantizing 30 thequantized, transform coefficients 26. The motion information 19 and thequantized, transform coefficients 26 may be entropy coded 32 and writtento the compressed-video bitstream 34. An output image region 38, forexample a portion of the reference frame, may be generated at theencoder 2 by filtering 36 the reconstructed, pre-filtered signal 22.This output frame may be used as a reference frame for the encoding ofsubsequent input pictures.

FIG. 2 illustrates an exemplary H.264/AVC video decoder 50. An inputsignal 52, also considered a bitstream, may be presented for decoding.Received symbols may be entropy decoded 54, thereby producing motioninformation 56, intra-prediction information 57, and quantized, scaled,transform coefficients 58. The motion information 56 may be combined 60with a portion of one or more reference frames 62 which may reside inframe memory 64, and an inter-frame prediction 68 may be generated. Thequantized, scaled, transform coefficients 58 may be inverse quantized,scaled and inverse transformed, thereby producing a decoded residualsignal 70. The residual signal 70 may be added to a prediction signal:either the inter-frame prediction signal 68 or an intra-frame predictionsignal 76. The intra-frame prediction information may be combined 74with previously decoded information in the current frame 72, and anintra-frame prediction 74 may be generated. The combined signal 72 maybe filtered 80 and the filtered signal 82 may be written to frame memory64.

In H.264/AVC, an input picture may be partitioned into fixed-sizemacroblocks, wherein each macroblock covers a rectangular picture areaof 16×16 samples of the luma component and 8×8 samples of each of thetwo chroma components. The decoding process of the H.264/AVC standard isspecified for processing units which are macroblocks. The entropydecoder 54 parses the syntax elements of the compressed-video bitstream52 and de-multiplexes them. H.264/AVC specifies two alternative methodsof entropy decoding: a low-complexity technique that is based on theusage of context-adaptively switched sets of variable length codes,referred to as CAVLC, and the computationally more demanding techniqueof context-based adaptively binary arithmetic coding, referred to asCABAC. In both such entropy decoding techniques, decoding of a currentsymbol may rely on previously, correctly decoded symbols and adaptivelyupdated context models. In addition, different data information, forexample, prediction data information, residual data information anddifferent color planes, may be multiplexed together. De-multiplexing maywait until elements are entropy decoded.

After entropy decoding, a macroblock may be reconstructed by obtaining:the residual signal through inverse quantization and the inversetransform, and the prediction signal, either the intra-frame predictionsignal or the inter-frame prediction signal. Blocking distortion may bereduced by applying a de-blocking filter to decoded macroblocks.Typically, such subsequent processing begins after the input signal isentropy decoded, thereby resulting in entropy decoding as a potentialbottleneck in decoding. Similarly, in codecs in which alternativeprediction mechanisms are used, for example, inter-layer prediction inH.264/AVC or inter-layer prediction in other scalable codecs, entropydecoding may be requisite prior to processing at the decoder, therebymaking entropy decoding a potential bottleneck.

An input picture comprising a plurality of macroblocks may bepartitioned into one or several slices. The values of the samples in thearea of the picture that a slice represents may be properly decodedwithout the use of data from other slices provided that the referencepictures used at the encoder and the decoder are the same and thatde-blocking filtering does not use information across slice boundaries.Therefore, entropy decoding and macroblock reconstruction for a slicedoes not depend on other slices. In particular, the entropy coding statemay be reset at the start of each slice. The data in other slices may bemarked as unavailable when defining neighborhood availability for bothentropy decoding and reconstruction. The slices may be entropy decodedand reconstructed in parallel. No intra prediction and motion-vectorprediction is preferably allowed across the boundary of a slice. Incontrast, de-blocking filtering may use information across sliceboundaries.

FIG. 3 illustrates an exemplary video picture 90 comprising elevenmacroblocks in the horizontal direction and nine macroblocks in thevertical direction (nine exemplary macroblocks labeled 91-99. FIG. 3illustrates three exemplary slices: a first slice denoted “SLICE #0”100, a second slice denoted “SLICE #1” 101 and a third slice denoted“SLICE #2” 102. An H.264/AVC decoder may decode and reconstruct thethree slices 100, 101, 102 in parallel. Each of the slides may betransmitted in scan line order in a sequential manner. At the beginningof the decoding/reconstruction process for each slice, context modelsare initialized or reset and macroblocks in other slices are marked asunavailable for both entropy decoding and macroblock reconstruction.Thus, for a macroblock, for example, the macroblock labeled 93, in“SLICE #1,” macroblocks (for example, macroblocks labeled 91 and 92) in“SLICE #0” may not be used for context model selection orreconstruction. Whereas, for a macroblock, for example, the macroblocklabeled 95, in “SLICE #1,” other macroblocks (for example, macroblockslabeled 93 and 94) in “SLICE #1” may be used for context model selectionor reconstruction. Therefore, entropy decoding and macroblockreconstruction proceeds serially within a slice. Unless slices aredefined using a flexible macroblock ordering (FMO), macroblocks within aslice are processed in the order of a raster scan.

Flexible macroblock ordering defines a slice group to modify how apicture is partitioned into slices. The macroblocks in a slice group aredefined by a macroblock-to-slice-group map, which is signaled by thecontent of the picture parameter set and additional information in theslice headers. The macroblock-to-slice-group map consists of aslice-group identification number for each macroblock in the picture.The slice-group identification number specifies to which slice group theassociated macroblock belongs. Each slice group may be partitioned intoone or more slices, wherein a slice is a sequence of macroblocks withinthe same slice group that is processed in the order of a raster scanwithin the set of macroblocks of a particular slice group. Entropydecoding and macroblock reconstruction proceeds serially within a slicegroup.

FIG. 4 depicts an exemplary macroblock allocation into three slicegroups: a first slice group denoted “SLICE GROUP #0” 103, a second slicegroup denoted “SLICE GROUP #1” 104 and a third slice group denoted“SLICE GROUP #2” 105. These slice groups 103, 104, 105 may be associatedwith two foreground regions and a background region, respectively, inthe picture 90.

A picture may be partitioned into one or more reconstruction slices,wherein a reconstruction slice may be self-contained in the respect thatvalues of the samples in the area of the picture that the reconstructionslice represents may be correctly reconstructed without use of data fromother reconstruction slices, provided that the references pictures usedare identical at the encoder and the decoder. All reconstructedmacroblocks within a reconstruction slice may be available in theneighborhood definition for reconstruction.

A reconstruction slice may be partitioned into more than one entropyslice, wherein an entropy slice may be self-contained in the respectthat symbol values in the area of the picture that the entropy slicerepresents may be correctly entropy decoded without the use of data fromother entropy slices. The entropy coding state may be reset at thedecoding start of each entropy slice. The data in other entropy slicesmay be marked as unavailable when defining neighborhood availability forentropy decoding. Macroblocks in other entropy slices may not be used ina current block's context model selection. The context models may beupdated only within an entropy slice. Accordingly, each entropy decoderassociated with an entropy slice may maintain its own set of contextmodels.

An encoder may determine whether or not to partition a reconstructionslice into entropy slices, and the encoder may signal the decision inthe bitstream. The signal may comprise an entropy-slice flag, which maybe denoted “entropy_slice_flag”. Referring to FIG. 5, an entropy-sliceflag may be examined 130, and if the entropy-slice flag indicates thatthere are no 132 entropy slices associated with a picture, or areconstruction slice, then the header may be parsed 134 as a regularslice header. The entropy decoder state may be reset 136, and theneighbor information for the entropy decoding and the reconstruction maybe defined 138. The slice data may then be entropy decoded 140, and theslice may be reconstructed 142. If the entropy-slice flag indicatesthere are 146 entropy slices associated with a picture, or areconstruction slice, then the header may be parsed 148 as anentropy-slice header. The entropy decoder state may be reset 150, theneighbor information for entropy decoding may be defined 152 and theentropy-slice data may be entropy decoded 154. The neighbor informationfor reconstruction may then be defined 156, and the slice may bereconstructed 142. After slice reconstruction 142, the next slice, orpicture, may be examined 158.

Referring to FIG. 6, the decoder may be capable of parallel decoding andmay define its own degree of parallelism, for example, consider adecoder comprising the capability of decoding N entropy slices inparallel. The decoder may identify 170 N entropy slices. If fewer than Nentropy slices are available in the current picture, or reconstructionslice, the decoder may decode entropy slices from subsequent pictures,or reconstruction slices, if they are available. Alternatively, thedecoder may wait until the current picture, or reconstruction slice, iscompletely processed before decoding portions of a subsequent picture,or reconstruction slice. After identifying 170 up to N entropy slices,each of the identified entropy slices may be independently entropydecoded. A first entropy slice may be decoded 172-176. The decoding172-176 of the first entropy slice may comprise resetting the decoderstate 172. If CABAC entropy decoding is used, the CABAC state may bereset. The neighbor information for the entropy decoding of the firstentropy slice may be defined 174, and the first entropy slice data maybe decoded 176. For each of the up to N entropy slices, these steps maybe performed (178-182 for the Nth entropy slice). The decoder mayreconstruct 184 the entropy slices when all, or a portion of, theentropy slices are entropy decoded.

When there are more than N entropy slices, a decode thread may beginentropy decoding a next entropy slice upon the completion of entropydecoding of an entropy slice. Thus when a thread finishes entropydecoding a low complexity entropy slice, the thread may commencedecoding additional entropy slices without waiting for other threads tofinish their decoding.

The arrangement of slices, as illustrated in FIG. 3, may be limited todefining each slice between a pair of macroblocks in the image scanorder, also known as raster scan or a raster scan order. Thisarrangement of scan order slices is computationally efficient but doesnot tend to lend itself to the highly efficient parallel encoding anddecoding. Moreover, this scan order definition of slices also does nottend to group smaller localized regions of the image together that arelikely to have common characteristics highly suitable for codingefficiency. The arrangement of slices, as illustrated in FIG. 4, ishighly flexible in its arrangement but does not tend to lend itself tohigh efficient parallel encoding or decoding. Moreover, this highlyflexible definition of slices is computationally complex to implement ina decoder.

Referring to FIG. 7, a tile technique divides an image into a set ofrectangular (inclusive of square) regions. The macroblocks (e.g.,largest coding units) within each of the tiles are encoded and decodedin a raster scan order. The arrangement of tiles are likewise encodedand decoded in a raster scan order. Accordingly, there may be anysuitable number of column boundaries (e.g., 0 or more) and there may beany suitable number of row boundaries (e.g., 0 or more). Thus, the framemay define one or more slices, such as the one slice illustrated in FIG.7. In some embodiments, macroblocks located in different tiles are notavailable for intra-prediction, motion compensation, entropy codingcontext selection or other processes that rely on neighboring macroblockinformation.

Referring to FIG. 8, the tile technique is shown dividing an image intoa set of three rectangular columns. The macroblocks (e.g., largestcoding units) within each of the tiles are encoded and decoded in araster scan order. The tiles are likewise encoded and decoded in araster scan order. One or more slices may be defined in the scan orderof the tiles. Each of the slices are independently decodable. Forexample, slice 1 may be defined as including macroblocks 1-9, slice 2may be defined as including macroblocks 10-28, and slice 3 may bedefined as including macroblocks 29-126 which spans three tiles. The useof tiles facilitates coding efficiency by processing data in morelocalized regions of a frame.

In one embodiment, the entropy encoding and decoding process isinitialized at the beginning of each tile. At the encoder, thisinitialization may include the process of writing remaining informationin the entropy encoder to the bit-stream, a process known as flushing,padding the bit-stream with additional data to reach one of apre-defined set of bit-stream positions, and setting the entropy encoderto a known state that is pre-defined or known to both the encoder anddecoder. Frequently, the known state is in the form of a matrix ofvalues. Additionally, a pre-defined bit-stream location may be aposition that is aligned with a multiple number of bits, e.g. bytealigned. At the decoder, this initialization process may include theprocess of setting the entropy decoder to a known state that is known toboth the encoder and decoder and ignoring bits in the bit-stream untilreading from a pre-defined set of bit-stream positions.

In some embodiments, multiple known states are available to the encoderand decoder and may be used for initializing the entropy encoding and/ordecoding processes. Traditionally, the known state to be used forinitialization is signaled in a slice header with an entropyinitialization indicator value. With the tile technique illustrated inFIG. 7 and FIG. 8, tiles and slices are not aligned with one another.Thus, with the tiles and slices not being aligned, there would nottraditionally be an entropy initialization indicator value transmittedfor tiles that do not contain a first macro-block in raster scan orderthat is co-located with the first macroblock in a slice. For examplereferring to FIG. 7, macroblock 1 is initialized using the entropyinitialization indicator value that is transmitted in the slice headerbut there is no similar entropy initialization indicator value formacroblock 16 of the next tile. Similar entropy initialization indicatorinformation is not typically present for macroblocks 34, 43, 63, 87, 99,109, and 121 for the corresponding tiles for the single slice (which hasa slice header for macroblock 1).

Referring to FIG. 8, in a similar manner for the three slices, anentropy initialization indicator value is provided in the slice headersfor macroblock 1 of slice 1, provided in the slice header for macroblock10 of slice 2, and provided in the slice header for macroblock 29 ofslice 3. However, in a manner similar to FIG. 7, there lacks an entropyinitialization indicator value for the central tile (starting withmacroblock 37) and the right hand tile (starting with macroblock 100).Without the entropy initialization indicator value for the middle andright hand tiles, it is problematic to efficiently encode and decode themacroblocks of the tiles in a parallel fashion and with high codingefficiency.

For systems using one or more tiles and one or more slices in a frame,it is preferable to provide the entropy initialization indicator valuetogether with the first macroblock (e.g., largest coding unit) of atile. For example, together with macroblock 16 of FIG. 7, the entropyinitialization indicator value is provided to explicitly select theentropy initialization information. The explicit determination may useany suitable technique, such as for example, indicate that a previousentropy initialization indicator value should be used, such as that in aprevious slice header, or otherwise send the entropy initializationindicator value associated with the respective macroblock/tile. In thismanner, while the slices may include a header that includes an entropyindex value, the first macroblock in a tile may likewise include anentropy initialization indicator value.

Referring to FIG. 9A, the encoding of this additional information may beas follows:

-   -   If (num_column_minus1>0 && num_rows min1>0) then        tile_cabac_init_idc_present_flag

num_column_minus1>0 determines if the number of columns in a tile is notzero and num_rows_min1>0 determines if the number of rows in a tile isnot zero, which both effectively determine if tiles are being used inthe encoding/decoding. If tiles are being used, then the tile_cabac_initidc_present_flag is a flag indicating how the entropy initializationindicator values are communicated from an encoder to a decoder. Forexample, if the flag is set to a first value then a first option may beselected such as using a previously communicated entropy initializationindicator value. As a specific example, this previously communicatedentropy initialization indicator value may be equal to the entropyinitialization indicator value transmitted in the slice headercorresponding to the slice containing the first macroblock of the tile.For example, if the flag is set to a second value then a second optionmay be selected such as the entropy initialization indicator value isbeing provided in the bitstream for the corresponding tile. As aspecific example, the entropy initialization indicator value is providedwithin in the data corresponding to the first macro-block of the tile.

The syntax for signaling the flag indication how the entropyinitialization indicator values are communicated from an encoder to adecoder may be as follows:

  num_columns_minus1 num_rows_minus1 if (num_column _minusl>0 && num_rows _minus1>0 {  tile_boundary_dependence_idr  uniform_spacing_idr if( uniform_spacing_idr !=1) {   for (i=0; i<num_columns _minus1; i++)   columnWidth[i]   for (i=0; i<num_rows_minus1; i++)    rowHeight[i]  } if( entropy_coding_mode==1)   tile_cabac_init_idc_present_flag }

Referring to FIG. 9B, other techniques may be used to determine if tilesare being used, such as including a flag in a sequence parameter set(e.g., information regarding a sequence of frames) and/or a pictureparameter set (e.g., information regarding a particular frame).

The syntax may be as follows:

  tile_enable_flag if (tile_enable_flag) {  num_columns_minus1 num_rows_minus1  tile_boundary_dependence _idr  uniform_spacing_idr if( uniform_spacing_idr !=1) {   for (i=0; i<num_columns_minus1; i++)   columnWidth[i]   for (i=0; i<num_rows_minus1; i++)    rowHeight[i]  } if( entropy_coding_mode==1)   tile_cabac_init_idc_present_flag }

tile_enable_flag determines if tiles are used in the current picture.

Referring to FIGS. 10A and 10B, a technique to provide a suitableentropy initialization indicator value information for a tile may be asfollows.

First, check to see if the macroblock (e.g., coding unit) is the firstmacroblock in a tile. Thus, the technique determines the firstmacroblock of a tile that may include an entropy initializationindicator value. Referring to FIG. 7, this refers to macroblocks 1, 16,34, 43, 63, 87, 99, 109, and 121. Referring to FIG. 8, this refers tomacroblocks 1, 37, and 100.

Second, check to see if the first macroblock (e.g., coding unit) of thetile is not the first macroblock (e.g., coding unit) of the slice. Thus,the technique identifies additional tiles within the slice. Referring toFIG. 7, this refers to macroblocks 16, 34, 43, 3, 87, 99, 109, and 121.Referring to FIG. 8, this refers to macroblocks 37 and 100.

Third, check to see if the tile_cabac_init_idc_flag is equal to a firstvalue and if tiles are enabled. In one specific embodiment, this valueis equal to 0. In a second embodiment, this value is equal to 1. In anadditional embodiment, tiles are enabled when (num_column_min1>0 &&num_rows_min1>0). In another embodiment, tiles are enabled whentile_enable_flag equal to 1.

For such identified macroblocks the cabac_init_idc_present_flag may beset.

Then the system may only signal cabac_init_idc_flag if tilecabac_init_idc_flag is present and if (num_column_minus1>0 &&num_rows_min1>0). Thus, the system only sends the entropy information iftiles are being used and the flag indicates the entropy information isbeing sent (i.e., cabac_init_idc flag).

The coding syntax may be as follows:

   coding_unit (x0, y0, currCodingUnitSize) {   If(x0==tile_row_start_location && y0=tile_col_start_location &&currCodingUnitSize==MaxCodingUnitSize && tile_cabac_init_idc_flag==true&& mb_id!=first_mb_in_slice {    cabac_init_idc_present_flag    if(cabac_init_idc_present_flag)     cabac_init_idc   }   a regular codingunit...  }

In general, one or more flag(s) associated with the first macroblock(e.g., coding unit) of a tile not associated with the first macroblockof a slice may define an entropy initialization indicator value. A flagmay indicate whether the entropy initialization indicator value ispreviously provided information, a default value, or otherwise entropyinitialization indicator value to be provided.

Referring again to FIG. 7, the decoder knows the location of macroblock16 in the picture frame but due to entropy encoding is not aware of thepositions of bits describing macroblock 16 in the bitstream untilmacroblock 15 is entropy decoded. This manner of decoding andidentifying the next macroblock maintains a low bit overhead, which isdesirable. However, it does not facilitate tiles to be decoded inparallel. To increase the ability to identify a specific position in thebit-stream for a specific tile in a frame, so that the different tilesmay be simultaneously decoded in parallel in the decoder without waitingfor completion of the entropy decoding, a signal may be included in thebitstream identifying the location of tiles in the bit-stream. Referringto FIG. 11, the signaling of the location of tiles in the bit-stream ispreferably provided in the header of a slice. If a flag indicates thatthe location of tiles in the bitstream is transmitted within the slice,then in addition to the location within the slice of the firstmacroblock of each of the tile(s) within the slice it also preferablyincludes the number of such tiles within the frame. Further, thelocation information may be included for only a selected set of tiles,if desired.

The coding syntax may be as follows:

  tile_locations_flag  if (tile_location_flag) {   tile_locations( ) } tile_locations( )  { for (i=0; i<num_of_tiles_minus1; i++) {   tile_offset[i] } }

tile_locations_flag signals if the tile locations are transmitted in thebitstream. The tile_offset[i] may be signaled using absolute locationvalues or differential size values (change in tile size with respect topreviously coded tile) or any suitable technique.

While this technique has low overhead, the encoder can not generallytransmit the bit stream until all the tiles are encoded.

In some embodiments it is desirable to include data related to thelargest absolute location value or largest differential size value, alsoconsidered a largest value, of sequential tiles. With such information,the encoder can transmit only the number of bits necessary to supportthe identified largest value; the decoder can receive only the number ofbits necessary to support the identified largest value. For example,with a relatively small largest value only a small bit depth isnecessary for the tile location information. For example, with arelatively large largest value, a large bit depth is necessary for thetile location information.

As another technique to increase the ability to identify differenttiles, so that the different tiles may be processed in parallel in thedecoder without waiting for the entropy decoding, markers within thebitstream associated with the start of each tile may be used. These tilemarkers are included within the bitstream in such a manner that they canbe identified without entropy decoding of that particular portion of thebitstream. In one embodiment the marker may begin with 0x000001, inanother embodiment the marker may begin with 0x000002, in anotherembodiment the marker may begin with 0x000004, or any other suitablesequence of bits. Furthermore, the marker may include additional headersassociated with a tile and/or the first macroblock of the tile. In thismanner the encoder can write each tile to the bitstream after it isencoded without waiting until all the tiles are encoded, although thebit rate is increased as a result. In addition, the decoder can parsethe bitstream to identify the different tiles in a more efficientmanner, especially when used in conjunction with buffering.

The tile headers may be similar to the slice headers, although lessinformation is typically included. The principal information required isthe macroblock number of the next block and entropy initialization dataand slice index (indicating, to which slice the starting CU in the tilebelongs). The coding syntax of such a tile header may be as illustratedin FIG. 12A. Alternatively, the principal information may also includethe initial quantization parameter. The coding syntax of such a tileheader may be as illustrated in FIG. 12B. Values that is not transmittedin the slice header and not in the tile header may be reset to thevalues transmitted in the slice header.

In some embodiments, markers are included in the bitstream andassociated with the start of a tile. However, markers may not beincluded for every tile in the bitstream. This facilitates and encoderand decoder to operate a different levels of parallelism. For example,an encoder could use 64 tiles while only including 4 markers in thebitstream. This enables parallel encoding with 64 processes and paralleldecoding with 4 processes. In some embodiments, the number of markers inthe bitstream is specified in a manner known both to the encoder anddecoder. For example, the number of markers may be signaled in thebitstream or defined with a profile or level.

In some embodiments, location data is included in the bitstream andassociated with the start of a tile. However, location data may not beincluded for every tile in the bitstream. This facilitates and encoderand decoder to operate a different levels of parallelism. For example,an encoder could use 64 tiles while only including 4 locations in thebitstream. This enables parallel encoding with 64 processes and paralleldecoding with 4 processes. In some embodiments, the number of locationsin the bitstream is specified in a manner known both to the encoder anddecoder. For example, the number of markers may be signaled in thebitstream or defined with a profile or level.

Referring to FIG. 13, one exemplary technique for explicitly identifyingthe start of a tile is illustrated. The value of a tile index isinitialized (TileIdx=0), the value of a previous tile location isinitialized (PreviousLocation=0), the value of a previous tile size isinitialized (PreviousTileSize=0), and the value of a number of tiles isinitialized (TileCount=(num_columns_minus1+1)*(num_rows_minus1+1) 300.The tile data is written to the bit-stream of the first largest codingunit (LCU) of the tile 310, which in the initial case of a picture istypically the LCU in the upper left hand corner. Tile data is the datanecessary to reconstruct the pixel values within a tile. If there isanother tile to be written 320 then a set of values may be modified. Acurrent tile size may be updated which indicates the number of largestcoding units in the tile(CurrentTileSize=CurrentLocation−PreviousLocation) 330, whereCurrentLocation is the position of the start of the current tile in thebitstream. In an alternative embodiment, the current tile size may beupdated to indicate the number of coding units in the tile. A tiledifferential offset 340 may be updated which indicates an offset betweenthe current file size and the previous tile size. The previous locationmay be set to the current location (PreviousLocation=CurrentLocation),the previous tile size may be set to the current tile size(PreviousTileSize=CurrentTileSize), and the tile index may beincremented (TileIdx=TileIdx+1) 350. The first LCU of the next tile maybe written with data 310. This recursive process is repeated until thereare no additional tiles to be written 355 within a slice.

If the tile count is greater than one (TileCount>1) 360 then thepresence of the tile location information flag may be set(TileLocationInformationPresentFlag=.T.) 370. Also, a set of values mayalso be written 380, including for example, TileLocationInformationFlag,TileDifferentialOffset[0], TileDifferentialOffset[1], . . .,TileDifferentialOffset[NumberOfTilesMinus1−1], whereNumberOfTilesMinus1 is equal to TileCount-1. In some embodiments the setof values 380 is written to the slice header. In the case that there isonly one tile 360, then the storing of the additional data related tothe tiles is skipped 385. In some embodiments, TileDifferentialOffsetrepresents the tile size within current slice.

Referring to FIG. 14, one exemplary technique for implicitly identifyingthe start of a tile is illustrated. The value of a tile index isinitialized (TileIdx=0), a previous tile location is initialized(PreviousLocation=0), and a previous tile size is initialized(PreviousTileSize=0) 400. The tile data is written to the bit-stream ofthe first largest coding unit (LCU) of the tile 410, which in theinitial case of a picture is typically the LCU in the upper left handcorner. If there is another tile to be written 420 then a set of valuesare written to a coding unit of a tile 425. The values written 425 mayinclude markers and/or tile header information, where tile header andlight weight tile header or equivalent. The tile header information, mayinclude for example, the largest coding unit address, the slice index,and quantization parameter information. The first LCU of the next tileis written with data 410. This recursive process is repeated until thereare no additional tiles to be written 430. It is to be understood, thatboth implicit and/or explicit signaling of the tile start locations maybe included within the bitstream.

Referring to FIG. 15, the tile header may include one or more of a tileindex value, in addition to the LCU address, the slice index, and/or thequantization parameter information. In some cases, the LCU address isreplaced by a tile index value, TileIdx. In some cases, the slice indexis replaced by a slice parameter set index that indicates a sliceparameter set previously transmitted within the bitstream. A sliceparameter set may contain but is not restricted to values forquantization parameter, entropy coder initialization parameters,reference list parameters, or loop filter parameters. The tile indexvalue may be any suitable value, such as for example, the tile indexminus 1 In this manner the tiles are numbered in a sequential manner,with the first tile having a number of 0. By including a tile indexvalue, the decoding of the tiles is less computationally complex. Insome embodiments of the invention, tile index values are only in tileheaders that do not correspond to a first tile in the bit-stream orslice.

In addition, for a particular slice a flag may be included in the tileheader that indicates whether to use the current information in theslice header or previously transmitted information in a slice header.This further reduces the computational complexity of the system and alsoreduces the bit rate of the bitstream.

In one embodiment of the invention, the presence of the flag may beindicated in the bitstream with a slice_parameter_set_present_flag. Thesyntax for the slice_parameter_set_present_flag may be as follows:

Pic_parameter_set_rbsp( ) { Descriptor   pic_parameter_set_id ue(v)   ...   slice_parameter_set_present_flag u(1)   rbsp_trailing_bits( ) }

The slice_parameter_set_present_flag signals in the bitstream whetherslice parameter sets are transmitted. One exemplary syntax is for thepicture parameter set. The slice parameter set index is transmitted inthe bit-stream only in the that the slice_parameter_set_present flagindictates that slice parameter sets are transmitted in the bit-stream.If “slice_parameter_set_present_flag” is present and is set to a TRUEvalue then slice_parameter_set_flag is signaled. If“slice_parameter_set_present_flag” is present and set to a FALSE valuethen slice_parameter_set_flag is not signaled. In some embodiments, when“slice_parameter_set_present_flag” is set to a FALSE value, theninformation from previously transmitted slice headers is used. In someembodiments, the TRUE value may be equal to 1. In some embodiments, theFALSE value may be equal to 0. For some tile headers this process may beskipped as signaled by the flag slice_parameter_set_flag, as indicatedbelow. For some embodiments of the invention, the flagslice_parameter_set_flag is inferred to be a true value.

Referring to FIG. 16, the tile header may also include a slice parameterset index value. The slice parameter set index value may refer to one ormore sets of slice parameter sets, which are the previously transmittedinformation in a slice header. Each of the slice parameter sets mayinclude, for example, a quantization parameter (QP), context-basedadaptively binary arithmetic coding information (cabac_init_idc), areference picture list modification, or loop filter information. Theloop filter information, typically includes for example, adaptive loopfilter information, sample adaptive offset information, or deblockingfilter information.

An exemplary syntax for a tile header is as follows:

tile_header( ) { Descriptor  tile_idx−1 u(v)  If(slice_parameter_set_present_flag)  {  slice_parameter_set_flag u(1)  if (slice_parameter_set_flag)   slice_parameter_set_id ue(v)  }  ...slice_parameter_set_id: represents the slice parameter set index valueand refers to a particular slice parameter set previously transmittedwithin the bitstream. FIG. 16 illustrates how different tile headers maycontain two different slice_parameter_set_id and refer to two differentslice parameter sets previously transmitted within the bitstream.

The tile_idx-1 may specify the tile index minus 1. The tile_idx-1 may bean unsigned number. The tile_idx-1 may use v-bits where v is determinedbased upon the maximum number of tiles in the picture. For example, vmay be calculated as: RoundAbove(log 2(TileCount-1)) where RoundAbove(x)represents rounding to the first integer value equal to or larger thanx.

As previously described, the slice_parameter_set_flag specifies if aslice_parameter_set_id is transmitted in the bitstream. If theslice_parameter_set_flag is a first value no slice_parameter_set_id istransmitted in the bitstream and the existing active slice parameter setis used for the tile. In one embodiment, the active slice parameter setis the slice parameter set used by the previous tile. In a secondembodiment, the active slice parameter set is the slice parameter setused by the last coding unit in the previous tile. Ifslice_parameter_set_flag is a second value, a slice_parameter_set_id istransmitted in the bitstream. In one embodiment, the first and secondvalues are 0 and 1, respectively.

The slice parameter set id specifies the slice parameter set id referredto by the tile.

Referring to FIG. 17, a flag may be included at the end of the tile toindicate its end. In this manner, the computational complexity withdetermining the end of the tile may be simplified.

In some cases, the description has illustrated techniques for thecreation of the bitstream with suitable data for the slices and/ortiles. With this information being included within the bitstream in asuitable manner, the decoder can similarly receive this data and use itto more effectively decode the bitstream.

The terms and expressions which have been employed in the foregoingspecification are used therein as terms of description and not oflimitation, and there is no intention, in the use of such terms andexpressions, of excluding equivalents of the features shown anddescribed or portions thereof, it being recognized that the scope of theinvention is defined and limited only by the claims which follow.

We claim:
 1. A method for decoding video using a microprocessor, themethod comprising: (a) receiving a bit stream of a frame of said videothat includes at least one slice and at least one tile, where each ofsaid at least one slice is decoded independently of another one of saidat least one slice and includes said at least one tile, wherein said atleast one tile is characterized that it is a rectangular region of saidframe and includes coding units for said decoding arranged in a rasterscan order; (b) receiving first information indicating whether locationinformation of said at least one tile is transmitted within said atleast one slice; (c) receiving second information suitable for decodingsaid at least one tile, said second information including a location ofsaid at least one tile; (d) initializing a decoding process at abeginning of each of the at least one tile, the decoding processincluding ignoring bits in the bit-stream until reading from apre-defined position; and (e) providing a flag indicating if tiles arebeing used; wherein a decoder uses the flag to reconstruct the frame ofsaid video that includes the at least one slice and the at least onetile.
 2. The method of claim 1, wherein the pre-defined position is abyte aligned position.